<div id="box" >
	<div class="padding">
		<table id="projecttable" class="tablesorter">
			<thead>
				<tr class="header">
					<th width="5%">ID</th><th width="15%">Kunde(n)</th><th>Titel</th><th width="15%">Aktion</th>
				</tr>
			</thead>
			<tbody>
				<?php 
				foreach($this->projects as $project) { ?>
				<tr class="trow">
					<td><?php print($project['pid']); ?></td>
					<td>
					<?php 
					if(count($project['clients']) > 0) { 
						foreach($project['clients'] as $client) {
							print($client['lastname'].", ");
						}
					}
					else print("(kein Kunde zugewiesen)"); ?>											 
					</td>
					<td><?php print($project['ptitle']); ?></td>
					<td><a href="/<?= Zend_Registry::get('Zend_Locale') ?>/projects/edit/pid/<?= $project['pid'] ?>">bearbeiten</a> | löschen</td>
				</tr>
				<?php } ?>
			</tbody>
		</table>
	</div>
</div>